package cn.nfwx.tv.adapter;

import com.chad.library.adapter.base.BaseQuickAdapter;
import com.chad.library.adapter.base.BaseViewHolder;

import cn.nfwx.tv.R;
import cn.nfwx.tv.model.Company;

public class CompanyAdapter extends BaseQuickAdapter<Company, BaseViewHolder> {
    public CompanyAdapter() {
        super(R.layout.item_company);
    }

    @Override
    protected void convert(BaseViewHolder helper, Company item) {
        helper.setText(R.id.tv_company_name, item.getCompany());
        helper.itemView.setSelected(item.isPress());
    }
}
